home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ MSO2K Folders 2.xpl < prev    next >
Text File  |  1999-07-17  |  2KB  |  75 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="4"
  3. "COUNT"="4"
  4. "UIPATH"="System\File System\Data Folders"
  5. "NAME"="Office 2000 Folders #2"
  6. "VERSION"="1.1"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Word Files Dir"
  9. "TEXT 2"="PowerPoint Dir"
  10. "TEXT 3"="Publisher Dir"
  11. "TEXT 4"="Publisher Pic. Dir"
  12. "DESCRIPTION 1"="With this plug-in, you can change the default path for your files. When set, the program will use the configured folder as default for the file requester."
  13. "DESCRIPTION 2"="Please exit all Office programs before changing these settings."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  17.  
  18.  
  19. sP="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Common\General\"
  20.  
  21. 'STR W9x - xSTR WNT
  22. sWWD="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Word\Options\DOC-PATH"
  23. sPPT="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\PowerPoint\RecentFolderList\Default"
  24. sPUB1="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Publisher\Doc_Path"
  25. sPUB2="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Publisher\Picture_Path"
  26.  
  27. Sub Plugin_Initialize 
  28. ' if RegPathExists(sP) then
  29.   s=RegReadValue(sWWD)
  30.   SetUIElement 1,s
  31.  
  32.   s=RegReadValue(sPPT)
  33.   SetUIElement 2,s
  34.  
  35.   s=RegReadValue(sPUB1)
  36.   SetUIElement 3,s
  37.  
  38.   s=RegReadValue(sPUB2)
  39.   SetUIElement 4,s
  40. ' else
  41. '  Disable
  42. ' end if
  43. End Sub
  44.  
  45. Sub Plugin_CheckData(ElementIndex)
  46. End Sub
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  Call Wrt(1,sWWD)
  50.  Call Wrt(2,sPPT)
  51.  Call Wrt(3,sPUB1)
  52.  Call Wrt(4,sPUB2)
  53.  
  54.  Call Logoff()
  55. End Sub
  56.  
  57.  
  58. Sub Wrt(ITM,VAL)
  59.  s=GetUIElement(ITM)
  60.  if len(s)>0 then 
  61.   
  62.     if Right(s,1)="\" then
  63.        s=left(s,len(s)-1)
  64.     end if
  65.     Call RegWriteValue(VAL,s,1)
  66.  else
  67.     s=RegReadValue(VAL)
  68.     if IsEmpty(s)=false then Call RegDeleteValue(VAL)
  69.  end if
  70. end sub
  71.  
  72.  
  73. Sub Plugin_Terminate 
  74. End Sub
  75.